import execjs


info = input("请输入：")

# js_str = """
#
# function shuffleString(str) {
#         // 将字符串拆分为字符数组（支持 Unicode 字符，如 emoji）
#         const chars = [...str];
#         //  Fisher-Yates 核心逻辑：从后往前交换
#         for (let i = chars.length - 1; i > 0; i--) {
#             // 生成 [0, i] 范围的随机索引
#             const randomIndex = Math.floor(Math.random() * (i + 1));
#             // 交换当前字符与随机索引字符
#             [chars[i], chars[randomIndex]] = [chars[randomIndex], chars[i]];
#         }
#         // 拼接回字符串并返回
#         return chars.join('')
#
#     }
#
#
#
# """
# js_code = execjs.compile(js_str)
#
# r = js_code.call("shuffleString", info)
# print(r)

js_str = """
 function say_hi(_0x5c06a3) {
                var _0x381cf1 = _0x4d38;
                return _0x381cf1(0x1f5) + _0x5c06a3;
            }
function _0x4d38(_0x3b9d47, _0x4615f1) {
                var _0x346c54 = _0x346c();
                return _0x4d38 = function(_0x4d38d1, _0x560da5) {
                    _0x4d38d1 = _0x4d38d1 - 0x1f0;
                    var _0x3a7dad = _0x346c54[_0x4d38d1];
                    return _0x3a7dad;
                }
                ,
                _0x4d38(_0x3b9d47, _0x4615f1);
            }
 function _0x4d38(_0x3b9d47, _0x4615f1) {
                var _0x346c54 = _0x346c();
                return _0x4d38 = function(_0x4d38d1, _0x560da5) {
                    _0x4d38d1 = _0x4d38d1 - 0x1f0;
                    var _0x3a7dad = _0x346c54[_0x4d38d1];
                    return _0x3a7dad;
                }
                ,
                _0x4d38(_0x3b9d47, _0x4615f1);
            }
              function _0x346c() {
                var _0x205da9 = ['24NltPNi', 'hello\x20world', '26HftglE', '260200JdajEb', '6044040GXQTzT', '3QaRYbx', '50590hupCQw', '226982kaqEHG', '373005PuDqIb', '6572727XVJXYc', '10051019qeJTPp', '104Lmjjsa'];
                _0x346c = function() {
                    return _0x205da9;
                }
                ;
                return _0x346c();
            }


"""
js_code = execjs.compile(js_str)

r = js_code.call("say_hi", info)
print(r)

